import request from '@/utils/request'

// 查询特殊时间段设置列表
export function listTime(query) {
  return request({
    url: '/vehicle/time/list',
    method: 'get',
    params: query
  })
}

// 查询特殊时间段设置详细
export function getTime(specialId) {
  return request({
    url: '/vehicle/time/' + specialId,
    method: 'get'
  })
}

// 新增特殊时间段设置
export function addTime(data) {
  return request({
    url: '/vehicle/time',
    method: 'post',
    data: data
  })
}

// 修改特殊时间段设置
export function updateTime(data) {
  return request({
    url: '/vehicle/time',
    method: 'put',
    data: data
  })
}

// 删除特殊时间段设置
export function delTime(specialId) {
  return request({
    url: '/vehicle/time/' + specialId,
    method: 'delete'
  })
}
